Bubble counter problems using a teensy for brewing need a little help please.

Had a little help from my best friend how does this look now?

int ledpin = 13; // led is on pin 13
int photoPin = 2;
int val = 0;
int count = 0;
const int ledPin = 13;
const int time = 3600;

void setup ()
{
pinMode(ledpin, OUTPUT);
pinMode(photoPin, INPUT);
val = digitalRead(photoPin);
Serial.begin(9600);
}

void loop () // runs over and over
{

//the loop continually runs if(you read something from the input)
{
blink the led update the count (count++) if(the system time == time)
{

print();
}//end inner if }//end outer if
}//end loop //This is a function, I don't know the proper //way to write this

function print()
{

Serial.print("Bubbles per minute: ");
Serial.println(count,DEC);

}//end print